public class OTG
extends java.lang.Object
| Constructor and Description |
|---|
OTG() |
| Modifier and Type | Method and Description |
|---|---|
static OTG |
getInstance()
ȡOTG ʵ
Get instance for OTG. |
boolean |
isPowerOn()
判断设备是否上电
Detect whether device is powered on or not. |
void |
off()
ر OTG
Close OTG. |
void |
on()
OTG
Open OTG. |
public static OTG getInstance()
public void on()
public void off()
public boolean isPowerOn()